<?php
namespace Tbf\Component\GiveName\Tests;

use Tbf\Bundle\TestBundle\TestSuite\TbfTestCase;
use Tbf\Component\GiveName\GiveNameFunction;

class GiveNameTest extends TbfTestCase{
    function test1(){
        $input = 'TestV1';
        $expect = 'testV1';
        $output = GiveNameFunction::to($input,'GiveName','giveName');
        $this->assertEquals($expect,$output);

        $ret = GiveNameFunction::to('AccBcc','GiveName','give_name');
        $this->assertEquals('acc_bcc',$ret);
    }
}